<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

</head>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>

<body>
    <div id="app">
        
        <button v-on:click='pot'>点击{{num}}</button>
    </div>

</body>
<script>
    var vm = new Vue({
        el: '#app',
        data: {
            num: 1
        },
        methods: {
            pot() {
                this.num += 1
            }
        }
    })
</script>

</html>